home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 419_01 / odmg10 / config / Project.tmpl < prev    next >
Encoding:
Text File  |  1994-02-21  |  22.5 KB  |  841 lines

  1. XCOMM -------------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters
  3. XCOMM $XConsortium: Project.tmpl,v 1.137 91/07/30 22:57:01 rws Exp $
  4.  
  5. /*****************************************************************************
  6.  *                                                                           *
  7.  *                            DEFAULT DEFINITONS                             *
  8.  *                                                                           *
  9.  * The following section contains defaults for things that can be overridden *
  10.  * in the various *.cf and site.def files.  DO NOT EDIT!                     *
  11.  *                                                                           *
  12.  ****************************************************************************/
  13.  
  14. #define ProjectX        5    /* do *not* change this line */
  15.  
  16. /*
  17.  * X-specific things
  18.  */
  19. #ifndef BuildServer
  20. #define BuildServer        YES
  21. #endif
  22. #ifndef BuildFonts
  23. #define BuildFonts        BuildServer
  24. #endif
  25. #ifndef BuildFontServer
  26. #define BuildFontServer        BuildServer
  27. #endif
  28. #ifndef BuildPex
  29. #define BuildPex        YES
  30. #endif
  31. #ifndef BuildPexClients
  32. #define BuildPexClients        BuildPex
  33. #endif
  34. #ifndef BuildPexExt
  35. #if BuildServer
  36. #define BuildPexExt        BuildPex
  37. #else
  38. #define BuildPexExt        NO
  39. #endif
  40. #endif
  41. #ifndef BuildXInputExt
  42. #define BuildXInputExt        NO
  43. #endif
  44. #ifndef BuildXInputLib
  45. #define BuildXInputLib        YES
  46. #endif
  47. #ifndef InstallLibManPages
  48. #define InstallLibManPages    YES
  49. #endif
  50. #ifndef InstallXtermSetUID
  51. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  52. #endif
  53. #ifndef InstallXinitConfig
  54. #define InstallXinitConfig    NO    /* install sample xinit config */
  55. #endif
  56. #ifndef InstallXdmConfig
  57. #define InstallXdmConfig    NO    /* install sample xdm config */
  58. #endif
  59. #ifndef XdmServersType            /* what Xservers files to use */
  60. #if BuildServer
  61. #define XdmServersType ws
  62. #else
  63. #define XdmServersType fs
  64. #endif
  65. #endif
  66. #ifndef InstallFSConfig
  67. #define InstallFSConfig        NO    /* install sample fs config */
  68. #endif
  69. #ifndef InstallAppDefFiles
  70. #define InstallAppDefFiles    YES    /* install application defaults */
  71. #endif
  72. #ifndef DebugLibX
  73. #define DebugLibX        NO    /* debugged X library */
  74. #endif
  75. #ifndef DebugLibXArchive
  76. #define DebugLibXArchive    NO    /* archive file of above */
  77. #endif
  78. #ifndef ProfileLibX
  79. #define ProfileLibX        NO    /* profiled X library */
  80. #endif
  81. #ifndef ProfileLibXArchive
  82. #define ProfileLibXArchive    NO    /* archive file of above */
  83. #endif
  84. #ifndef DebugOldLibX
  85. #define DebugOldLibX        NO    /* debugged old X library */
  86. #endif
  87. #ifndef ProfileOldLibX
  88. #define ProfileOldLibX        NO    /* profiled old X library */
  89. #endif
  90. #ifndef DebugLibXt
  91. #define DebugLibXt        NO    /* debugged toolkit library */
  92. #endif
  93. #ifndef ProfileLibXt
  94. #define ProfileLibXt        NO    /* profiled toolkit library */
  95. #endif
  96. #ifndef DebugLibXaw
  97. #define DebugLibXaw        NO    /* debugged widget library */
  98. #endif
  99. #ifndef ProfileLibXaw
  100. #define ProfileLibXaw        NO    /* profiled widget library */
  101. #endif
  102. #ifndef DebugLibXext
  103. #define DebugLibXext        NO    /* debugged Xext library */
  104. #endif
  105. #ifndef ProfileLibXext
  106. #define ProfileLibXext        NO    /* profiled Xext library */
  107. #endif
  108. #ifndef DebugLibXmu
  109. #define DebugLibXmu        NO    /* debugged Xmu library */
  110. #endif
  111. #ifndef ProfileLibXmu
  112. #define ProfileLibXmu        NO    /* profiled Xmu library */
  113. #endif
  114. #ifndef DebugLibXau
  115. #define DebugLibXau        NO    /* debugged auth library */
  116. #endif
  117. #ifndef ProfileLibXau
  118. #define ProfileLibXau        NO    /* profiled auth library */
  119. #endif
  120. #ifndef DebugLibXdmcp
  121. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  122. #endif
  123. #ifndef ProfileLibXdmcp
  124. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  125. #endif
  126. #ifndef ManDirectoryRoot
  127. #ifdef ProjectRoot
  128. #define ManDirectoryRoot Concat(ProjectRoot,/man)
  129. #ifndef XmanLocalSearchPath
  130. #define XmanLocalSearchPath ManDirectoryRoot
  131. #endif
  132. #else
  133. #if SystemV4
  134. #define ManDirectoryRoot /usr/share/man
  135. #else
  136. #define ManDirectoryRoot /usr/man
  137. #endif
  138. #endif
  139. #endif
  140. #ifndef ManSuffix
  141. #define ManSuffix    n        /* use just one tab or cpp will die */
  142. #endif
  143. #ifndef LibManSuffix
  144. #define LibManSuffix    3        /* use just one tab or cpp will die */
  145. #endif
  146. #ifndef HasXdmAuth
  147. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  148. #endif
  149. #ifndef BDFTOSNFFILT
  150. #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  151. #endif
  152. #ifndef SHELLPATH
  153. #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
  154. #endif
  155. #ifndef ZBDFTOSNFFILT
  156. #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
  157. #endif
  158. #ifndef FontFilters
  159. #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
  160. #endif
  161. #ifndef PrimaryScreenResolution
  162. #define PrimaryScreenResolution 72        /* a common resolution */
  163. #endif
  164. #ifndef DefaultFontPath
  165. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  166. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  167. #else
  168. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  169. #endif
  170. #endif
  171. #ifndef DefaultRGBDatabase
  172. #define DefaultRGBDatabase $(LIBDIR)/rgb
  173. #endif
  174. #ifndef FontCompilerFlags
  175. #define FontCompilerFlags -t
  176. #endif
  177. #ifndef ConnectionFlags
  178. #if (SystemV || SystemV4) && !HasSockets
  179. #define ConnectionFlags -DSTREAMSCONN
  180. #else
  181. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  182. #endif
  183. #endif
  184. #ifndef FontOSDefines
  185. #define FontOSDefines /**/
  186. #endif
  187. #ifndef FontDefines
  188. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  189. #endif
  190. #ifndef ExtensionOSDefines
  191. #define ExtensionOSDefines /**/
  192. #endif
  193. #ifndef ExtensionDefines
  194. #ifndef PexDefines
  195. #if BuildPexExt
  196. #define PexDefines -DPEXEXT
  197. #else
  198. #define PexDefines /**/
  199. #endif
  200. #endif
  201. #ifndef ShmDefines
  202. #if HasShm
  203. #define ShmDefines -DMITSHM
  204. #else
  205. #define ShmDefines /**/
  206. #endif
  207. #endif
  208. #ifndef XInputDefines
  209. #if BuildXInputExt
  210. #define XInputDefines -DXINPUT
  211. #else
  212. #define XInputDefines /**/
  213. #endif
  214. #endif
  215. #ifndef BaseExtensionDefines
  216. #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC PexDefines ShmDefines XInputDefines
  217. #endif
  218. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  219. #endif
  220. #ifndef ServerExtraDefines
  221. #define ServerExtraDefines -DXDMCP
  222. #endif
  223. #ifndef ServerOSDefines
  224. #define ServerOSDefines /**/
  225. #endif
  226. #ifndef ServerDefines
  227. #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
  228. #endif
  229. #ifndef PexDipexDefines
  230. #define PexDipexDefines /**/
  231. #endif
  232. #ifndef PexDdpexDefines
  233. #define PexDdpexDefines /**/
  234. #endif
  235. #ifndef PexPhigsDefines
  236. #ifndef PexShmIPC
  237. #define PexShmIPC HasShm
  238. #endif
  239. #if PexShmIPC
  240. #define PexPhigsDefines /**/
  241. #else
  242. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  243. #endif
  244. #endif
  245. #ifndef PexClientDefines
  246. #define PexClientDefines -DPEX_SI_PHIGS
  247. #endif
  248. #ifndef PhigsInclude
  249. #ifdef UseInstalled
  250. #define PhigsInclude -I$(INCDIR)
  251. #else
  252. #define PhigsInclude -I$(BUILDINCDIR)
  253. #endif
  254. #endif
  255. #ifndef PexCDebugFlags
  256. #define PexCDebugFlags DebuggableCDebugFlags
  257. #endif
  258. #ifndef PexCCOptions
  259. #ifdef LibraryCCOptions
  260. #define PexCCOptions LibraryCCOptions
  261. #else
  262. #define PexCCOptions DefaultCCOptions
  263. #endif
  264. #endif
  265. #ifndef DefaultFSConfigFile
  266. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  267. #endif
  268. #ifndef BinDir
  269. #ifdef ProjectRoot
  270. #define BinDir Concat(ProjectRoot,/progs)
  271. #else
  272. #define BinDir /usr/bin/X11
  273. #endif
  274. #endif
  275. #ifndef BuildIncRoot
  276. #define BuildIncRoot $(TOP)/include
  277. #endif
  278. #ifndef BuildIncTop
  279. #define BuildIncTop ../..
  280. #endif
  281. #ifndef LibDir
  282. #define LibDir $(USRLIBDIR)/X11
  283. #endif
  284. #ifndef ConfigDir
  285. #define ConfigDir $(TOP)/config
  286. #endif
  287. #ifndef LintlibDir
  288. #define LintlibDir $(USRLIBDIR)/lint
  289. #endif
  290. #ifndef FontDir
  291. #define FontDir $(LIBDIR)/fonts
  292. #endif
  293. #ifndef AdmDir
  294. #define AdmDir /usr/adm
  295. #endif
  296. #ifndef XinitDir
  297. #define XinitDir $(LIBDIR)/xinit
  298. #endif
  299. #ifndef XdmDir
  300. #define XdmDir $(LIBDIR)/xdm
  301. #endif
  302. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  303. #define XdmConfigurationSubdirectory config
  304. #endif
  305. #ifndef TwmDir
  306. #define TwmDir $(LIBDIR)/twm
  307. #endif
  308. #ifndef ManPath
  309. #define ManPath ManDirectoryRoot
  310. #endif
  311. #ifndef ManSourcePath
  312. #define ManSourcePath $(MANPATH)/man
  313. #endif
  314. #ifndef ManDir
  315. #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
  316. #endif
  317. #ifndef LibmanDir
  318. #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
  319. #endif
  320. #ifndef NlsDir
  321. #define NlsDir $(LIBDIR)/nls
  322. #endif
  323. #ifndef PexApiDir
  324. #define PexApiDir $(LIBDIR)/PEX
  325. #endif
  326. #ifndef XFileSearchPathBase
  327. #define XFileSearchPathBase $(LIBDIR)/%L/%T/%N%C%S:$(LIBDIR)/%l/%T/%N%C%S:$(LIBDIR)/%T/%N%C%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S
  328. #endif
  329. #ifndef XFileSearchPathDefault
  330. #ifdef XAppLoadDir
  331. #define XFileSearchPathDefault XAppLoadDir/%N%C%S:XAppLoadDir/%N%S:XFileSearchPathBase
  332. #else
  333. #define XFileSearchPathDefault XFileSearchPathBase
  334. #endif
  335. #endif
  336. #ifndef XAppLoadDir
  337. #define XAppLoadDir $(LIBDIR)/app-defaults
  338. #endif
  339. #ifndef XtErrorPrefix
  340. #define XtErrorPrefix /* as empty string */
  341. #endif
  342. #ifndef XtWarningPrefix
  343. #define XtWarningPrefix /* as empty string */
  344. #endif
  345. #ifndef OsNameDefines
  346. #define OsNameDefines /* as nothing */
  347. #endif
  348. #ifndef DefaultUserPath            /* for xdm */
  349. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  350. #endif
  351. #ifndef DefaultSystemPath        /* for xdm */
  352. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  353. #endif
  354. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  355. #define DefaultSystemShell BourneShell
  356. #endif
  357. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  358. #define UseCCMakeDepend NO
  359. #endif
  360. #ifndef DependDir
  361. #if UseCCMakeDepend
  362. #define DependDir $(SCRIPTSRC)
  363. #else
  364. #define DependDir $(UTILSRC)/makedepend
  365. #endif
  366. #endif
  367. #ifndef ContribDir
  368. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  369. #endif
  370. #ifndef DependCmd
  371. #define DependCmd $(DEPENDSRC)/makedepend
  372. #endif
  373. #ifndef RemoveTargetProgramByMoving
  374. #define RemoveTargetProgramByMoving NO
  375. #endif
  376. #ifndef AllocateLocalDefines
  377. #define AllocateLocalDefines /**/
  378. #endif
  379.  
  380. #if HasFlex
  381. #ifndef LexCompiler
  382. #define LexCompiler flex
  383. #endif
  384. #ifndef LexFlags
  385. #define LexFlags -I
  386. #endif
  387. #else
  388. #ifndef LexCompiler
  389. #define LexCompiler lex
  390. #endif
  391. #ifndef LexFlags
  392. #define LexFlags
  393. #endif
  394. #endif
  395.  
  396. #if HasBison
  397. #ifndef YaccCompiler
  398. #define YaccCompiler bison
  399. #endif
  400. #ifndef YaccFlags
  401. #define YaccFlags -d
  402. #endif
  403. #else
  404. #ifndef YaccCompiler
  405. #define YaccCompiler yacc
  406. #endif
  407. #ifndef YaccFlags
  408. #define YaccFlags -d
  409. #endif
  410. #endif
  411.  
  412. #ifndef ForceNormalLib
  413. #define ForceNormalLib (HasSaberC | HasGcc)
  414. #endif
  415. #ifndef SharedLibX
  416. #define SharedLibX HasSharedLibraries
  417. #endif
  418. #ifndef NormalLibX
  419. #define NormalLibX (!SharedLibX | ForceNormalLib)
  420. #endif
  421. #ifndef SharedOldLibX
  422. #define SharedOldLibX HasSharedLibraries
  423. #endif
  424. #ifndef NormalOldLibX
  425. #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
  426. #endif
  427. #ifndef SharedLibXt
  428. #define SharedLibXt HasSharedLibraries
  429. #endif
  430. #ifndef NormalLibXt
  431. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  432. #endif
  433. #ifndef SharedLibXaw
  434. #define SharedLibXaw HasSharedLibraries
  435. #endif
  436. #ifndef NormalLibXaw
  437. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  438. #endif
  439. #ifndef SharedLibXmu
  440. #define SharedLibXmu HasSharedLibraries
  441. #endif
  442. #ifndef NormalLibXmu
  443. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  444. #endif
  445. #ifndef SharedLibXau
  446. #define SharedLibXau NO        /* don't need shared form */
  447. #endif
  448. #ifndef NormalLibXau
  449. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  450. #endif
  451. #ifndef SharedLibXdmcp
  452. #define SharedLibXdmcp NO    /* don't need shared form */
  453. #endif
  454. #ifndef NormalLibXdmcp
  455. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  456. #endif
  457. #ifndef SharedLibXext
  458. #define SharedLibXext HasSharedLibraries
  459. #endif
  460. #ifndef NormalLibXext
  461. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  462. #endif
  463. #ifndef SharedLibXinput
  464. #define SharedLibXinput HasSharedLibraries
  465. #endif
  466. #ifndef NormalLibXinput
  467. #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
  468. #endif
  469. #ifndef SharedLibPhigs
  470. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  471. #endif
  472. #ifndef NormalLibPhigs
  473. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  474. #endif
  475.  
  476.  
  477. #ifndef DoInstallExtensionsIntoXlib
  478. #define DoInstallExtensionsIntoXlib NO    /* merge libXext.a into libX11.a */
  479. #endif
  480.  
  481. XCOMM -------------------------------------------------------------------------
  482. XCOMM X Window System make variables; this need to be coordinated with rules
  483.  
  484. /*
  485.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  486.  * Makefile.
  487.  */
  488.           PATHSEP = /            /* for building filenames */
  489.         USRLIBDIR = UsrLibDir        /* libraries */
  490.            BINDIR = BinDir        /* programs */
  491.           INCROOT = IncRoot        /* base of where to put header files */
  492.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  493.       BUILDINCDIR = $(BUILDINCROOT)
  494.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  495.            INCDIR = $(INCROOT)        /* header files, must end in X11 */
  496.            ADMDIR = AdmDir        /* server log files */
  497.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  498.         CONFIGDIR = ConfigDir        /* build configuration information */
  499.        LINTLIBDIR = LintlibDir        /* lint libraries */
  500.  
  501.           FONTDIR = FontDir        /* font directories */
  502.          XINITDIR = XinitDir        /* xinit config files */
  503.            XDMDIR = XdmDir        /* xdm config files */
  504.            TWMDIR = TwmDir        /* twm config files */
  505.           MANPATH = ManPath        /* top of manual page tree */
  506.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  507.         MANSUFFIX = ManSuffix        /* suffix for man pages */
  508.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  509.            MANDIR = ManDir        /* man pages for commands */
  510.         LIBMANDIR = LibmanDir        /* man pages for library routines */
  511.            NLSDIR = NlsDir        /* nls files */
  512.         PEXAPIDIR = PexApiDir        /* PEX support files */
  513.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  514.        FONTCFLAGS = FontCompilerFlags
  515.         ANSIFLAGS =
  516.  
  517.        STD_LFLAGS = LexFlags
  518.        STD_YFLAGS = YaccFlags
  519.              YACC = YaccCompiler
  520.               LEX = LexCompiler
  521.  
  522.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  523.  
  524. #ifdef UseInstalled
  525.             IMAKE = imake        /* assume BINDIR in path */
  526.            DEPEND = makedepend        /* assume BINDIR in path */
  527.               RGB = rgb            /* assume BINDIR in path */
  528. #ifdef SnfFonts
  529.             FONTC = bdftosnf        /* assume BINDIR in path */
  530. #else
  531.             FONTC = bdftopcf        /* assume BINDIR in path */
  532. #endif
  533.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  534.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  535. #else
  536.             IMAKE = $(IMAKESRC)/imake
  537.            DEPEND = DependCmd
  538.               RGB = $(RGBSRC)/rgb
  539. #ifdef SnfFonts
  540.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  541. #else
  542.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  543. #endif
  544.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  545.         MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
  546. #endif
  547.  
  548.         CONFIGSRC = $(TOP)/config
  549.        DOCUTILSRC = $(TOP)/doc/util
  550.         CLIENTSRC = $(TOP)/clients
  551.           DEMOSRC = $(TOP)/demos
  552.            LIBSRC = $(TOP)/lib
  553.           FONTSRC = $(TOP)/fonts
  554.        INCLUDESRC = $(TOP)/X11
  555.         SERVERSRC = $(TOP)/server
  556.           UTILSRC = $(TOP)/util
  557.         SCRIPTSRC = $(UTILSRC)/scripts
  558.        EXAMPLESRC = $(TOP)/examples
  559.        CONTRIBSRC = ContribDir
  560.            DOCSRC = $(TOP)/doc
  561.            RGBSRC = $(TOP)/rgb
  562.         DEPENDSRC = DependDir
  563.          IMAKESRC = $(CONFIGSRC)
  564.          XAUTHSRC = $(LIBSRC)/Xau
  565.           XLIBSRC = $(LIBSRC)/X
  566.            XMUSRC = $(LIBSRC)/Xmu
  567.        TOOLKITSRC = $(LIBSRC)/Xt
  568.        AWIDGETSRC = $(LIBSRC)/Xaw
  569.        OLDXLIBSRC = $(LIBSRC)/oldX
  570.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  571.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  572.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  573.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  574.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  575.          FSLIBSRC = $(FONTSRC)/lib/fs
  576.     FONTSERVERSRC = $(FONTSRC)/server
  577.      EXTENSIONSRC = $(TOP)/extensions
  578.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  579.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  580.  
  581.          PHREDSRC = $(TOP)/../sys/phred
  582.          NAUTICUS = ProjectRoot
  583.    EXTRA_INCLUDES = -I$(NAUTICUS)/include
  584.  
  585.         PHREDLIBS = -lMu -lM -ltools
  586.  
  587.       MODELLIBSRC = $(LIBSRC)/model
  588.          MODELLIB = $(MODELLIBSRC)/libModel.a
  589.       DEPMODELLIB = $(MODELLIB)
  590.  
  591.          DBLIBSRC = $(LIBSRC)/db
  592.             DBLIB = $(DBLIBSRC)/libDb.a
  593.          DEPDBLIB = $(DBLIB)
  594.  
  595. APIGEN=$(UTILSRC)/apigen/apigen
  596.  
  597.       GLOBELIBSRC = $(LIBSRC)/globe
  598.          GLOBELIB = $(GLOBELIBSRC)/libGlobe.a
  599.       DEPGLOBELIB = $(GLOBELIB)
  600.  
  601.         IPCLIBSRC = $(LIBSRC)/ipc
  602.            IPCLIB = $(IPCLIBSRC)/libIpc.a
  603.         DEPIPCLIB = $(IPCLIB)
  604.  
  605.         SYSLIBSRC = $(LIBSRC)/sys
  606.            SYSLIB = $(SYSLIBSRC)/libSys.a
  607.         DEPSYSLIB = $(SYSLIB)
  608.  
  609.            APISRC = $(TOP)/api
  610.  
  611.      BIFFERAPISRC = $(APISRC)/biffer
  612.         BIFFERAPI = $(BIFFERAPISRC)/libBiffer.a
  613.      DEPBIFFERAPI = $(BIFFERAPI)
  614.  
  615.       GLOBEAPISRC = $(APISRC)/globe
  616.          GLOBEAPI = $(GLOBEAPISRC)/libGlobe.a
  617.       DEPGLOBEAPI = $(GLOBEAPI)
  618.  
  619.       MODELAPISRC = $(APISRC)/model
  620.          MODELAPI = $(MODELAPISRC)/libModel.a
  621.       DEPMODELAPI = $(MODELAPI)
  622.  
  623.      DESPOTAPISRC = $(TOP)/api/despot
  624.         DESPOTAPI = $(DESPOTAPISRC)/libDespot.a
  625.      DEPDESPOTAPI = $(DESPOTAPI)
  626.  
  627.      VECTORAPISRC = $(APISRC)/vector
  628.         VECTORAPI = $(VECTORAPISRC)/libVector.a
  629.      DEPVECTORAPI = $(VECTORAPI)
  630.  
  631.      SKYNETAPISRC = $(APISRC)/skynet
  632.         SKYNETAPI = $(SKYNETAPISRC)/libSkynet.a
  633.      DEPSKYNETAPI = $(SKYNETAPI)
  634.  
  635.  
  636.        BASELIBSRC = $(LIBSRC)/base
  637.           BASELIB = $(BASELIBSRC)/libBase.a
  638.        DEPBASELIB = $(BASELIB)
  639.  
  640.         PEXDBLIBSRC = $(TOP)/progs/pexdb
  641.            PEXDBLIB = $(PEXDBLIBSRC)/libPexdb.a
  642.         DEPPEXDBLIB = $(PEXDBLIB)
  643.  
  644.         DDTLIBSRC = $(LIBSRC)/ddt
  645.            DDTLIB = $(DDTLIBSRC)/libddt.a
  646.         DEPDDTLIB = $(DDTLIB)
  647.  
  648.         AFCLIBSRC = $(LIBSRC)/afc
  649.            AFCLIB = $(AFCLIBSRC)/libAfc.a
  650.         DEPAFCLIB = $(AFCLIB)
  651.  
  652.         OBJLIBSRC = $(LIBSRC)/obj
  653.            OBJLIB = $(OBJLIBSRC)/libObj.a
  654.         DEPOBJLIB = $(OBJLIB)
  655.  
  656.         C11LIBSRC = $(LIBSRC)/c11
  657.            C11LIB = $(C11LIBSRC)/libC11.a
  658.         DEPC11LIB = $(C11LIB)
  659.  
  660.         IPCLIBSRC = $(LIBSRC)/ipc
  661.            IPCLIB = $(IPCLIBSRC)/libIpc.a
  662.         DEPIPCLIB = $(IPCLIB)
  663.  
  664.          XNLIBSRC = $(LIBSRC)/xn
  665.             XNLIB = $(XNLIBSRC)/libXn.a
  666.          DEPXNLIB = $(XNLIB)
  667.  
  668.         DDBLIBSRC = $(LIBSRC)/db
  669.            DDBLIB = $(DDBLIBSRC)/libddb.a
  670.         DEPDDBLIB = $(DDBLIB)
  671.  
  672.       IMAGELIBSRC = $(TOP)/pict/lib
  673.          IMAGELIB = $(IMAGELIBSRC)/libImage.a
  674.       DEPIMAGELIB = $(IMAGELIB)
  675.  
  676.        BIFFLIBSRC = $(LIBSRC)/biff
  677.           BIFFLIB = $(BIFFLIBSRC)/libBiff.a
  678.        DEPBIFFLIB = $(BIFFLIB)
  679.  
  680.        DTEDLIBSRC = $(TOP)/lib/dted
  681.           DTEDLIB = $(DTEDLIBSRC)/libDted.a
  682.        DEPDTEDLIB = $(DTEDLIB)
  683.  
  684. #if HasSybase
  685.         SYBASESRC = SybaseDir
  686.         SYBASELIB = $(SYBASESRC)/lib/libsybdb.a
  687.         SYBASEINC = -I$(SYBASESRC)/include
  688. #endif
  689.  
  690. #if HasOracle
  691.         ORACLESRC = OracleDir
  692.         ORACLELIB = $(ORACLESRC)/lib
  693.         ORACLEINC = -I$(ORACLESRC)/include
  694.  ORACLE_LIBRARIES = $(ORACLELIB)/libocic.a\
  695.                     $(ORACLELIB)/osntab.o\
  696.                     $(ORACLELIB)/libsqlnet.a\
  697.                     $(ORACLELIB)/libora.a\
  698.                     $(ORACLELIB)/libnetwork.a\
  699.                     $(ORACLELIB)/libcore.a
  700. #endif
  701.  
  702. /*
  703.  * _Use - makes a choice based on UseInstalled.
  704.  */
  705. #ifndef _Use
  706. #ifdef UseInstalled
  707. #define _Use(a,b) a
  708. #else
  709. #define _Use(a,b) b
  710. #endif
  711. #endif
  712.  
  713. /*
  714.  * _UseCat - combination of _Use and Concat.
  715.  *           exists to avoid problems with some preprocessors
  716.  */
  717. #ifndef _UseCat
  718. #if __STDC__ && !defined(UnixCpp)
  719. #ifdef UseInstalled
  720. #define _UseCat(a,b,c) a##c
  721. #else
  722. #define _UseCat(a,b,c) b##c
  723. #endif
  724. #else
  725. #ifdef UseInstalled
  726. #define _UseCat(a,b,c) a/**/c
  727. #else
  728. #define _UseCat(a,b,c) b/**/c
  729. #endif
  730. #endif
  731. #endif
  732.  
  733. #ifndef ShLibIncludeFile
  734. /* need this to make ANSI-style proprocessors happy */
  735. #define ShLibIncludeFile <noop.rules>
  736. #endif
  737.  
  738. #include ShLibIncludeFile
  739.  
  740. #if HasSharedLibraries
  741.         SOXLIBREV = SharedXlibRev
  742.           SOXTREV = SharedXtRev
  743.          SOXAWREV = SharedXawRev
  744.         SOOLDXREV = SharedOldXRev
  745.          SOXMUREV = SharedXmuRev
  746.         SOXEXTREV = SharedXextRev
  747.       SOXINPUTREV = SharedXinputRev
  748. #endif
  749.  
  750. EXTENSIONLIB = -lXext
  751. XLIB = -lX11
  752. XMULIB = -lXmu
  753. XTOOLLIB = -lXt
  754. XAWLIB = -lXaw
  755. XILIB = -lXi
  756. PHIGSLIB = -lphigs
  757. XAUTHLIB = -lXau
  758. XDMCPLIB = -lXdmcp
  759.  
  760. #if !SharedLibXext
  761.   DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
  762.      EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
  763. #endif
  764. #if !SharedLibX
  765.           DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
  766.              XLIB = $(EXTENSIONLIB) LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
  767. #endif
  768.       DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
  769.          XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
  770.       DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
  771.          XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
  772. #if !SharedLibXmu
  773.         DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
  774.            XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
  775. #endif
  776. #if !SharedOldLibX
  777.        DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
  778.           OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
  779. #endif
  780. #if !SharedLibXt
  781.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
  782.          XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
  783. #endif
  784. #if !SharedLibXaw
  785.         DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
  786.            XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
  787. #endif
  788. #if !SharedLibXinput
  789.         DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
  790.            XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
  791. #endif
  792. #if !SharedLibPhigs
  793.         DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
  794.            PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
  795. #endif
  796.  
  797.  LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
  798.          LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
  799.           LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
  800.         LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
  801.           LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
  802.            LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
  803.         LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
  804.  
  805. #ifndef XawClientDepLibs
  806. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  807. #endif
  808. #ifndef XawClientLibs
  809. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  810. #endif
  811.  
  812. #ifndef NeedDefaultDepLibs
  813. #define NeedDefaultDepLibs YES
  814. #endif
  815.  
  816. #if NeedDefaultDepLibs
  817. /*
  818.  * Individual libraries should override this
  819.  */
  820. #if HasSharedLibraries || UseInstalled
  821.           DEPLIBS = 
  822. #else
  823.           DEPLIBS = $(LOCAL_LIBRARIES)
  824. #endif
  825.          DEPLIBS1 = $(DEPLIBS)
  826.          DEPLIBS2 = $(DEPLIBS)
  827.          DEPLIBS3 = $(DEPLIBS)
  828.  
  829. EXTENSIONLIB = -lXext
  830. XLIB = -lX11
  831. XMULIB = -lXmu
  832. XTOOLLIB = -lXt
  833. XAWLIB = -lXaw
  834. XILIB = -lXi
  835. PHIGSLIB = -lphigs
  836. XAUTHLIB = -lXau
  837. XDMCPLIB = -lXdmcp
  838. PEXLIB = -lPEX5
  839.  
  840. #endif /* NeedDefaultDepLibs */
  841.